<link href="<?php echo DOMAIN; ?>/css/my-style.css" rel="stylesheet" type="text/css" />
<?php $data= $this->data;//Zend_Debug::dump($data);die;  ?>

<?php 
	if($this->success){
	?>
		<div class="notification success" >
			<span class="strong">Thao tác thành công.</span>
			<span class="close" title="Dismiss"></span>
		</div>
		<?php
	}
	
	if($this->warning){
		?>
			<div class="notification warning" >
				<span class="strong">Dữ liệu bạn nhập còn thiếu. Xin vui lòng kiểm tra lại!</span>
				<span class="close" title="Dismiss"></span>
			</div>
			<?php
		}
?>

<form method="post" class="form" action="<?php echo DOMAIN_INDEX.'/admin/student/edit?do=edit&id='.$data[0]['id'] ?>" enctype="multipart/form-data">
      <fieldset>
        <legend>Chỉnh sửa thông tin sinh viên</legend>
        <input type="text" value="<?php echo $data[0]['id'] ?>" name="id" style="display: none;" />
        <p class='row-form'>
          <label class='title-row' for="City">Họ tên <span class="required">*</span>:</label>
          <input style="width:250px;"  type="text" name="name" value="<?php echo $data[0]['name']; ?>"  />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">Ngày sinh <span class="required">*</span>:</label>
          <input style="width:250px;"  type="text" name="birthday" value="<?php echo $data[0]['birthday'] ?>" />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">SHSV <span class="required">*</span>:</label>
          <input style="width:250px;"  type="text" name="shsv" value="<?php echo $data[0]['shsv'] ?>" />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">Lớp <span class="required">*</span>:</label>
          <input style="width:250px;"  type="text" name="class" value="<?php echo $data[0]['class'] ?>" />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">Tên tài khoản <span class="required">*</span>:</label>
          <input style="width:250px;"  type="text" name="username" value='<?php echo $data[0]['username'] ?>' />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">Mật khẩu <span class="required">*</span>:</label>
          <input style="width:250px;"  type="text" name="password" value="<?php  echo base64_decode($data[0]['password']);  ?>" />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">Khóa <span class="required">*</span>:</label>
          <input style="width:250px;" type="text" name="course" value="<?php echo $data[0]['course'] ?>" />
        </p>
        <p class='row-form'>
          <label class='title-row' for="City">Trạng thái <span class="required">*</span>:</label>
          <select name="status">
            <option value="1" <?php if($data[0]['status']==1) echo "selected='selected'" ?>>ON</option>
            <option value="0" <?php if($data[0]['status']==0) echo "selected='selected'" ?>>OFF</option>
          </select>
        </p>
      
        <p class='row-form'>
        	<input class="blue" style="margin-bottom:-10px;" type="submit" name="submit" value="Chỉnh sửa"/>
            <input class='blue' style="margin-bottom:-10px;"  onclick="javascript:window.location='<?php echo DOMAIN_INDEX ?>/admin/student'; return false;" value="Hủy bỏ" type="button"/>
        </p>
      </fieldset>
</form>
